<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
<html><head>
<title>themesel</title>
</head><body>
<p>[<a href="mxdoc.htm">mainpage</a>]
[<a href="tags.htm">tags</a>]<br>
<h1><a name="themesel">module: themesel</a></h1><p><b>A theme selector and loader</b><p>
This module implements a theme selector dialog.  
(<a href="../include/depui/themesel.h">../include/depui/themesel.h</a>)<p>Part of the <a href="depui.htm">depui</a> library.<ul><li>
<a name="MX_THEMESEL"><code>MX_THEMESEL</code></a>
<p>
<p><b>A theme seletion window  </b><p>
(<a href="../include/depui/themesel.h">../include/depui/themesel.h</a>)<p></li>
<li>
<a name=" define mx_themesel(id)"><code># define mx_themesel(id)</code></a>
<p>
<p><b>Create a theme selector window</b><p>
This macro creates a theme selector with the specified id number.  
(<a href="../include/depui/themesel.h">../include/depui/themesel.h</a>)<p></li>
<li>
<a name="void mx_themesel_refresh(MX_THEMESEL* sel)"><code>void mx_themesel_refresh(MX_THEMESEL* sel)</code></a>
<p>
<p>This function refreshes a theme selector dialog with the currently
available themes.  This function should be called after creating the theme
selector and before it gets displayed or gets an MX_GEOMETRY event.  
(<a href="../include/depui/themesel.c">../include/depui/themesel.c</a>)<p></li>
<li>
<a name="void mx_themesel_handler(MX_WIN* win)"><code>void mx_themesel_handler(MX_WIN* win)</code></a>
<p>
<p>Error handling could be better here  
(<a href="../include/depui/themesel.c">../include/depui/themesel.c</a>)<p></li>
<li>
<a name="MX_THEMESEL* mx_themeselwin(MX_THEMESEL* sel, size_t size, MX_HANDLER handler, int theid)"><code>MX_THEMESEL* mx_themeselwin(MX_THEMESEL* sel, size_t size, MX_HANDLER handler, int theid)</code></a>
<p>
<p>mx_text_set(&sel->_themes, "themes", -1, 0);  
(<a href="../include/depui/themesel.c">../include/depui/themesel.c</a>)<p></li>
<li>
<a name="const MX_THEME* mx_themesel_info(const int idnum)"><code>const MX_THEME* mx_themesel_info(const int idnum)</code></a>
<p>
<p><b>theme selection information</b><p>
When a theme has been chosen from a theme selector dialog the a 
MX_THEMESEL_OK event is sent to the parent window.  This function can be called
when handling that event to determine the theme selected.  
(<a href="../include/depui/themesel.c">../include/depui/themesel.c</a>)

<p>This function should only be called when handling an MX_THEMESEL_event.  
(<a href="../include/depui/themesel.c">../include/depui/themesel.c</a>)

<p>The sepcified id number has to match the one with the selected theme.  
(<a href="../include/depui/themesel.c">../include/depui/themesel.c</a>)<p></li>
</ul><p>Generated by <a href="http://www.deleveld.dds.nl/mxdoc/index.htm">MXDOC</a> 2.2 on Sun Feb  4 15:16:27 2007


</body></html>
